var express = require('express');
var router = express.Router();
var mongoose=require('mongoose');
    const Cat = mongoose.model('Cat', { name: String ,gender:String});
/* GET home page. */
router.get('/', function(req, res, next) {
  const kitty = new Cat({ name: 'Zildjian', gender:'male' });
  kitty.save().then(() => console.log('meow'));
});

module.exports = router;
